package com.example.controller;

import com.example.service.RobotService;
import com.my.study.entity.vo.ResponseVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/robot")
public class RobotController {

    @Autowired
    private RobotService robotService;

    @GetMapping("/hello")
    public ResponseVO hello(){
        return ResponseVO.success(robotService.hello());
    }
}
